package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.PictureMapper;
import com.shunbo.convenient.service.PictureService;
import com.shunbo.convenient.vo.Picture;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class PictureServiceImpl implements PictureService {

    @Resource
    private PictureMapper pictureMapper;

    @Override
    public Integer save(Picture obj) {
        return pictureMapper.save(obj);
    }

    @Override
    public Integer update(Picture obj) {
        return pictureMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return pictureMapper.delete(obj);
    }

    @Override
    public Picture findById(String obj) {
        return pictureMapper.findById(obj);
    }

    @Override
    public List<Picture> findAll(Picture obj) {
        return pictureMapper.findAll(obj);
    }
}
